import request from '@/utils/request';


// 用户列表
export function userlist(options) {
  return request({
    url: '/user/page',
    method: 'post',
    data: options
  });
}



//获取未分组用户
export function tempUser(params) {
  return request({
    url: '/auth/tmp/list',
    method: 'get',
    params
  });
}



// 获取支持的学院
export function aviCollege() {
  return request({
    url: '/auth/avi/college',
    method: 'get'
  });
}


// 删除用户
export function deluser(id) {
  return request({
    url: `/user/remove_user/${id}`,
    method: 'delete'
  });
}

// 删除未分组用户
export function completeDeluser(id) {
  return request({
    url: `/user/complete_delete_user/${id}`,
    method: 'delete'
  });
}




// 手动添加用户
export function adduser(options) {
  return request({
    url: '/user/add_user',
    method: 'post',
    data: options
  });
}

//更新密码

export function upPassword(options) {
  return request({
    url: '/user/update_password',
    method: 'post',
    data: options
  });
}


// 获取学生档案信息

export function stuDetail(id) {
  return request({
    url: `/user/getinfo?user_id=${id}`,
    method: 'get'
  });
}




// 获取学生档案课程表

export function stuTable(id) {
  return request({
    url: `/user/study.info/${id}`,
    method: 'get'
  });
}
